package com.bbx.taxi.client.Bean;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import android.os.Environment;

/**
 * 固定值
 */
public class Value {

	public final static int isNormal=0;
	public final static int isBaidu=1;
	public final static int is360=2;
	/**
	 * 0为正在版本
	 * 1为百度，
	 * 2为360
	 */
	public static int isMode=isNormal;
	
	
	public static String[] car_type=new String[]{"舒适","商务","豪华"};
	public static int [] list_vtype=new int[]{/**5,*/1,2,3,4};
	/**特殊的类型，，出租车不需要请求价格跟套餐价格，，跟各个地方的一些特别处理*/
//	public static int taxi_vtype=list_vtype[0];
	public static int taxi_vtype=5;
	public static int vtype_null=100;
	
	//取消订单
	public static final int  TYPE_NOREASON=-1;
	public static final int  TYPE_REASON=0;
	public static final int  CANCEL_PASSENGER=20;
	
	
	/**时长默认值*/
	public static final int estimate_time=1;
	//订单类型
	/**进行中的订单*/
	public static final int TYPE_ING=1;
	/**完成订单*/
	public static final int TYPE_FINISH=2;
	/**全部订单*/
	public static final int TYPE_ALL=-1;
	/**取消订单*/
	public static final int TYPE_CANCEL=3;
	/**审核*/
	public static final int TYPE_UNP=4;
	/**驳回*/
	public static final int TYPE_REFUSE=5;
	
	/**订单操作通过*/
	public static final int PASS=1;
	/**订单操作驳回*/
	public static final int NOPASS=0;
	
	
	/**消息过来的订单结果通过*/
	public static final String MSG_RESULT_PASS="1";
	/**消息过来的订单结果驳回*/
	public static final String MSG_RESULT_NOPASS="0";
	
	/**订单结果通过*/
	public static final String PROCESS_RESULT_PASS="1";
	/**订单结果驳回*/
	public static final String PROCESS_RESULT_NOPASS="2";
	
	//审核状态
	//未审核
	public static String STATUS_AUDIT_NO="0";
	//审核通过
	public static String STATUS_AUDIT_PASS="1";
	//审核未通过
	public static String STATUS_AUDIT_NOPASS="2";
	
	//是否往返
	public static String ROUND_TRIP="1";
	public static String ROUND_TRIP_NO="0";
	
    
    ////////自费方式//////////////
    public final static int OWN=1;//自费
    public final static int NOOWN=0;//公务
    public final static int OWNALL=-1;//全部
    
    ////////支付状态//////////////
    public final static String PAY_STATUS="1";//已支付
    public final static String PAY_STATUS_NO="0";//待支付
    
    /**支付方式*/
    public final static String PAYWAY_MONTHLY="monthly";//普通月结
    public final static String PAYWAY_AA="aa_monthly";
    public static String PAYWAY_WEIXIN = "weixin";
	public static String PAYWAY_LINE = "line";
	public static String PAYWAY_ALIPAY = "alipay";
	public static String PAYWAY_WEIXIN_JSAPI="wx_JSAPI";
	
	
	 public static List<String> list_line=new ArrayList<String>();
	 public static List<String> list_line_cn=new ArrayList<String>();
	 public static String BBX_FIELS = "bbxpc";
	 public static String SD_PATH = getSDCardPath() + File.separator;
	  public static String BBX_PATH = SD_PATH + BBX_FIELS+ File.separator;
	  public static String SDK_PATH=BBX_PATH+"sdklog.txt";
	  public static String APK_PATH=BBX_PATH+"apk"+ File.separator;
	  public static String need_fetch_pic="";
	  /**判断SDK是否有重启登陆过*/
	  public static boolean isUnSDK=false;
	  public static String now_time="现在出发";
	  public  static boolean isActive = true;
	  public  static int  maxorder = 1000;
      public final static String pathSavedDir = Environment.getExternalStorageDirectory().getAbsolutePath() + "/downloads/";
	  /**开发*/
//	  public final static String mtid="SLMT_1441589221";
	 /**测试*/
	  public final static String mtid="SLMT_1441607074";
//	  public final static String mtid="SLMT_1441607152";
//	  public final static String mtid="SLMT_1441607159";
//	  public final static String mtid="SLMT_1441607175";
//	  public final static String mtid="SLMT_1441607164";
//	  public final static String mtid="SLMT_1441607169";
	 /**分享类型*/
	  public final static String RecommenType="1";
	  
	  public  static String TEL_KF="968969";
	  
	//订单状态
	  /**未处理*/
      public final static int ORDER_STATUS_UNTREATED=0;
      /**已入队列*/
      public final static int ORDER_STATUS_TEAM=1;
      /**-已指派*/
      public final static int ORDER_STATUS_ASSiIGN=2;
      /**-重新调度入队列*/
      public final static int ORDER_STATUS_RETEAM=3;
      /**-已上车*/
      public final static int ORDER_STATUS_ONCAR=4;
      /**-到达指定地点*/
      public final static int ORDER_STATUS_APPOINT=5;
      /**-司机确认*/
      public final static int ORDER_SIJI_CONFIRM=6;
      /**-已下车，就是待支付界面*/
      public final static int ORDER_STATUS_OFFCAR=10;
      /**-已完成*/
      public final static int ORDER_STATUS_FINISH=100;
	  /**订单取消*/
      public final static int ORDER_STATUS_CANCEL=20;
	  /**订单取消*/
      public final static int ORDER_STATUS_KF_CANCEL=23;
	  /**订单改派*/
      public final static int ORDER_STATUS_GAIPAI=21;
      /**订单改派然后又被取消*/
      public final static int ORDER_STATUS_GAIPAI_CANCEL=22;
      /**客服改派*/
      public final static int ORDER_STATUS_KF_GAIPAI=24;
      /**-客户删除*/
      public final static int ORDER_STATUS_DELETE=200;
      
      //预约类型
      public final static int TYPE_APPOINT=1;//预约
      public final static int TYPE_APPOINT_NO=0;//立即
      
      //订单评价状态
      /**待评价*/
      public final static int VALUATE_STATUS_NO=1;
      /**已评价*/
      public final static int VALUATE_STATUS=2;
      
    //订单类型，0拼车，1包车，2快件
      public final static int ORDER_TYPE_PC=0;
      public final static int ORDER_TYPE_BC=1;
      public final static int ORDER_TYPE_KJ=2;
      public final static int ORDER_TYPE_SN=3;
      public final static int ORDER_TYPE_GW=1000;
      
      //主界面的顺序，0为室内,1为拼车，2为包车,3快件
      public final static int VIEWID_GW=0;
      public final static int VIEWID_SN=0;
      public final static int VIEWID_PC=1;
      public final static int VIEWID_BC=2;
      public final static int VIEWID_KJ=3;
      
      //地址类型
      public final static String ADDRESS_TYPE_COLLECTE="1";
      public final static String ADDRESS_TYPE_HISTORY="0";
      //联系类型
      public final static String CONTACTS_TYPE_COLLECTE="1";
      public final static String CONTACTS_TYPE_HISTORY="0";
      
      //分享的一些appid 
      //微信
      public final static String weixin_appId="wxd7db52077725caf3";
      public final static String weixin_appSecret="f6f97d78a52c30c39eeb6b6a345fbe36";
      //QQ
      public final static String qq_appId="1104713789";
      public final static String qq_appKey="e8jmKP1NDdcgENki";
      
      //快件的值
      public final static int KJ_WEIGHT_0_5=1;
      public final static int KJ_WEIGHT_6_10=2;
      public final static int KJ_WEIGHT_11_15=3;
      public final static int KJ_VOLUME_S=1;
      public final static int KJ_VOLUME_M=2;
      public final static int KJ_VOLUME_B=3;
      
      //消息的已读跟未读
      public final static String MSG_READ="1";
      public final static String MSG_UNREAD="0";
      
      //城市是否具体地址
      public final static String CITY_DETAIL="1";
      public final static String CITY_NODETAIL="0";
      
      //是否是市内城市
      public final static String CITY_INCITY="1";
      public final static String CITY_NOINCITY="0";
      
      //是否显示
      public final static String CITY_SHOW="0";
      public final static String CITY_NOSHOW="1";
      
      //判断室内城市是APP下单还是电话下单
      public final static String CITY_APP="1";
      public final static String CITY_TEL="2";
      /**城市已地址的分隔符*/
      public final static String CITY_SPILT=" ";
  	/**
  	 * 获取SDCard路径
  	 * 
  	 * @return SDCard路径
  	 */
  	public static String getSDCardPath() {
  		// 判断SdCard是否存在并且是可用的
  		if (ExistSDCard()) {
  			return Environment.getExternalStorageDirectory().toString();
  		} else {
  			return null;
  		}
  	}
	public static boolean ExistSDCard() {
		if (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) {
			return true;
		} else
			return false;
	}
}
